package org.lonetree.tc.dao.hibernate.dto;

import java.util.HashSet;
import java.util.Set;


public class UserDTO{

	public static final int ROLE_END_USER = 0;
	public static final int ROLE_ADMIN_USER = 1;
	
	private int id;
	private String firstName;
	private String lastName;
	private String username;
	private String pwd;
	private String email;
	private String location;
	private Set<TextbookDTO> textbooks = new HashSet<TextbookDTO>();
	private Set<SectionDTO> sections = new HashSet<SectionDTO>();
	private int role;
	private boolean suspended;
	
	public UserDTO(){
		
	}
	
	public int getId(){
		return id;
	}
	
	public void setId(int id){
		this.id = id;
	}
	
	public String getFirstName(){
		return firstName;
	}
	
	public void setFirstName(String firstName){
		this.firstName = firstName;
	}
	
	public String getLastName(){
		return lastName;
	}
	
	public void setLastName(String lastName){
		this.lastName = lastName;
	}
	
	public String getUsername(){
		return username;
	}
	
	public void setUsername(String username){
		this.username = username;
	}

	public String getPwd(){
		return pwd;
	}
	
	public void setPwd(String pwd){
		this.pwd = pwd;
	}
	
	public String getEmail(){
		return email;
	}
	
	public void setEmail(String email){
		this.email = email;
	}
	
	public int getRole(){
		return role;
	}
	
	public void setRole(int role){
		this.role = role;
	}

	
	public String getLocation(){
		return location;
	}

	
	public void setLocation(String location){
		this.location = location;
	}

	
	public Set<TextbookDTO> getTextbooks(){
		return textbooks;
	}

	
	public void setTextbooks(Set<TextbookDTO> textbooks){
		this.textbooks = textbooks;
	}

	
	public Set<SectionDTO> getSections(){
		return sections;
	}

	
	public void setSections(Set<SectionDTO> sections){
		this.sections = sections;
	}

	
	public boolean isSuspended(){
		return suspended;
	}

	
	public void setSuspended(boolean suspended){
		this.suspended = suspended;
	}
}
